package com.cloud.api.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum ExecuteStatus implements IEnum<Integer> {
    PENDING(0,"未执行"),
    FAIL(1,"失败"),
    SUCCESS(2,"成功"),
    CANCEL(3,"失效");


    ExecuteStatus(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    @EnumValue
    private Integer value;

    @JsonValue
    private String desc;

    @Override
    public Integer getValue() {
        return this.value;
    }

}
